MinimalBy
MinimalBy[data,f] returns a list of the elements ei of data for which the value of f is minimal.
MinimalBy[data,f,n] returns a list of the elements ei of data corresponding to the n smallest f[ei].
MinimalBy[data,f,n,p] uses the ordering function p for sorting.
MinimalBy[f] represents an operator form of MinimalBy that can be applied to an expression.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.